﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_deleteOptionO : System.Web.UI.Page
{
    string idoption;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            string parent = Request.QueryString["Parent"].ToString();
            try
            {
                idoption = Request.QueryString["Id"].ToString();


                if (idoption != null && parent != null)
                {
                    com.bpophotos.www.Service service = new com.bpophotos.www.Service();
                    service.deleteOption(idoption, parent);
                }
                Response.Redirect("application.aspx?id=" + parent);
            }
            catch (Exception ee)
            {
                Response.Redirect("application.aspx?id=" + parent);

            }
        }
    }
}